package org.bright.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import org.bright.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author bright
 * @since 2024-12-10 04:12
 */
@Getter
@Setter
@TableName("contract")
@Schema(name = "Contract", description = "")
public class Contract extends BaseEntity {

    @Schema(description = "合同ID")
    @TableId(value = "contract_id", type = IdType.AUTO)
    private Integer contractId;

    @Schema(description = "供应商ID")
    @TableField("supplier_id")
    private Integer supplierId;

    @Schema(description = "合同开始日期")
    @TableField("start_date")
    private Date startDate;

    @Schema(description = "合同结束日期")
    @TableField("end_date")
    private Date endDate;

    @Schema(description = "合同条款")
    @TableField("terms")
    private String terms;

    @Schema(description = "合同")
    @TableField("term_url")
    private String termUrl;
}
